#include <arpa/inet.h>
#include <iostream>
int main()
{
  int port = 10;
  int hn = htons(port);
  std::cout << hn << std::endl;
  int nh = ntohs(hn);

  std::cout << nh << std::endl;

  return 0;
}
